﻿/*  ----------------------------------------------------------------------------
 *  RuleCode.Inc
 *  ----------------------------------------------------------------------------
 *  Object Template Engine
 *  ----------------------------------------------------------------------------
 *  File:       TemplateRuntimeException.cs
 *  Author:     RULECODE\yangbo
 *  Create Date:12-22-2009
 *  ----------------------------------------------------------------------------
 */
#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace RuleCode.TemplateEngine
{
	public class TemplateRuntimeException : Exception
	{
		int line;
		int col;

		public TemplateRuntimeException(string msg, int line, int col)
			:base(msg)
		{
			this.line = line;
			this.col = col;
		}

		public TemplateRuntimeException(string msg, Exception innerException, int line, int col)
			:base(msg, innerException)
		{
			this.line = line;
			this.col = col;
		}

		public int Col
		{
			get { return this.col; }
		}

		public int Line
		{
			get { return this.line; }
		}
	}
}